package com.huilian.tool.weixin.service;

import java.math.BigDecimal;
import java.util.Date;

public interface WXSendMessageService {
    /**
     * 设备出货失败通知
     */
    void sendVendingShipmentFailMessage(String deviceNo, String outTradeNo, String goodsName, Integer deviceId, Integer userId, Long orderId, Integer merchantStoreId);

    /**
     * 设备离线通知
     */
    void sendOfflineMessage(String deviceNo, String storeName, Integer deviceId, Integer userId, Integer merchantStoreId) throws Exception;

    /**
     * 下单成功通知
     */
    void sendTheOrderWasPlacedMessage(String outTradeNo, BigDecimal paymentAmount, String goodsName, String deviceNo, Integer userId, Long orderId, Integer merchantStoreId, Date gmtPayment) throws Exception;

    /**
     * 售货机缺货通知
     */
    void sendVendingMachineOutOfStockMessage(String deviceNo, Integer deviceId, String location, int num, String storeName, String goodsName, Integer userId, Long orderId, Integer merchantStoreId) throws Exception;

    /**
     * 售货机出货成功通知
     */
    void sendVendingShipmentSuccessMessage(String goodsName, String deviceNo, String location, String storeName, Integer userId, Integer merchantStoreId) throws Exception;

    /**
     * 蓝牙格子机低电量通知
     */
    void sendVendingPowerMessage(String deviceNo, String power, Date time, Integer userId, Integer merchantStoreId, String merchantStoreName) throws Exception;

    /**
     * 设备故障通知
     */
    void sendFaultMessage(String deviceNo, String address, String datetime, Integer fault, String name, Integer userId, Integer merchantStoreId) throws Exception;
}